package com.looking;

import java.util.List;

/**
 * Created by Administrator on 2017/1/10.
 */
public class Warehouse {

    public Warehouse(Persist persist) {
        initmine(persist);
    }

    private void initmine(Persist persist) {
        this.who = persist.getListByKey("who");
        this.where = persist.getListByKey("where");
        this.what = persist.getListByKey("what");
        this.LenWho = who.size();
        this.LenWhat = what.size();
        this.LenWhere = where.size();
    }

    private List<String> who;
    private List<String> where;
    private List<String> what;
    private int LenWho;
    private int LenWhere;
    private int LenWhat;

    public List<String> getWho() {
        return who;
    }

    public void setWho(List<String> who) {
        this.who = who;
    }

    public List<String> getWhere() {
        return where;
    }

    public void setWhere(List<String> where) {
        this.where = where;
    }

    public List<String> getWhat() {
        return what;
    }

    public void setWhat(List<String> what) {
        this.what = what;
    }

    public int getLenWho() {
        return LenWho;
    }

    public int getLenWhere() {
        return LenWhere;
    }

    public int getLenWhat() {
        return LenWhat;
    }
}
